home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / dparm12.zip / DOORPARM.DOC < prev    next >
Text File  |  1992-12-06  |  3KB  |  59 lines

  1. *****************************************************************************
  2.                        D O O R P A R M  v1.2 12-06-92
  3.                        Copyright 1992, Doug McClellan
  4. *****************************************************************************
  5. DOORPARM.COM reads data from the BBS dropfile DOOR.SYS and extracts ten 
  6. parameters; comport, baud rate, first name, last name, voice phone, data 
  7. phone, security level, minutes remaining, color(GR,NG,7E) and MNP(y/n).  
  8. DOORPARM.COM then passes these parameters to a batch file you define, via   
  9. PASSPARM.BAT. Here's an abbreviated example:     
  10.                                                                         
  11.   DOORPARM.COM target.bat ->> command line with your target batch file                     
  12.   PASSPARM.BAT            ->> contents: "target.bat <comport> <baud>..." 
  13.                                                                         
  14. PASSPARM.BAT is created by DOORPARM.COM, and must always be called after 
  15. DOORPARM.COM in a batch file. PASSPARM.BAT calls TARGET.BAT, and passes the 
  16. extracted variables from DOOR.SYS to DOS replacement variables in TARGET.BAT. 
  17. The DOS command SHIFT is necessary in TARGET.BAT to access the tenth parameter
  18. (MNP), as DOS currently only supports nine active replacement variables in a 
  19. batch file. A more complete application would look like this: 
  20.  
  21.   @echo off
  22.   if exist passparm.bat erase passparm.bat
  23.   c:\wc30\utils\doorparm c:\wc30\show-me.bat
  24.   if exist passparm.bat passparm.bat
  25.  
  26. PASSPARM.BAT executes SHOW-ME.BAT, passing the ten parameters in its command 
  27. line. After successfully executing DOORPARM.COM, you can view the contents of 
  28. PASSPARM.BAT to see how it works. SHOW-ME.BAT (supplied) displays the para-
  29. meters passed from PASSPARM.BAT, and provides an example on how to access the 
  30. 10th replacement variable. 
  31.  
  32. Notes: 
  33.  
  34. "Full Name" in DOOR.SYS is passed as two parameters; First Name and Last Name. 
  35. Empty phone number strings are represented as "N/A" by doorparm. Make sure 
  36. DOOR.SYS is present in the current directory. Parameters are passed to your 
  37. batch file in the following order;
  38.  
  39.     1)  com port                     2)  baud               
  40.     3)  first name                   4)  last name          
  41.     5)  voice                        6)  modem              
  42.     7)  security level               8)  minutes remaining  
  43.     9)  color spec                  10)  mnp                
  44.     
  45. Call my BBS if you have problems or suggestions; 
  46.  
  47.   CloudBase! (503) 744-0668 : 24 hours, HST-DS, fido 1:152/56. 
  48.   (Tell me if you're a visiting sysop, and I'll provide appropriate access). 
  49.  
  50. If you find this program useful, a $5 encouragement would be appreciated: 
  51.  
  52.                             Doug McClellan
  53.                             814 N Cloverleaf Lp
  54.                             Springfield, OR 97477
  55.  
  56. To extract parameters from USERINFO.DAT, download UPARM11.ZIP. You can find
  57. this on either the MSI support board, Charlatan's Cabin, or my own BBS. 
  58. *********************************( eof )*********************************
  59.